/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package escom.ipn.modelo.facade;

import com.mysql.jdbc.Connection;
import escom.ipn.modelo.dao.adminPoliciaDAO;
import escom.ipn.modelo.dao.adminSectorDAO;
import escom.ipn.modelo.dto.SectorClass;
import java.sql.SQLException;
import java.util.List;

/**
 *
 * @author db2admin
 */
public class adminSectorFacade {
    
    private Connection cnn;
    private adminSectorDAO dao;

    public adminSectorFacade(Connection cnn) {
        this.cnn=cnn;
        dao= new adminSectorDAO();
    }  
    
    public List getSectores() throws SQLException{
        return dao.getSectores(cnn);
    }
    
    public List getSectorNOMBRE(SectorClass a) throws SQLException{
        return dao.getSectorNOMBRE(a,cnn);
    }
    
    public List getSectorID(SectorClass a) throws SQLException{
        return dao.getSectorID(a,cnn);
    }
    
    
    
    
    
    
    
}
